package com.guoguo.mapper;

import com.guoguo.entity.Attention;
import com.guoguo.entity.vo.AttentionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by KLSD on 2017/9/12.
 */
public interface AttentionMapper {
    List<AttentionVO> getAttention(int attType);

    List<AttentionVO> getAttentionModelList(@Param("userId") String userId, int pageNum, int pageSize);

    List<AttentionVO> getAttentionAuthorList(@Param("userId") String userId, int pageNum, int pageSize);

    int deleteAttention(@Param("userId") String userId, @Param("modelId") String modelId);

    int saveAttention(Attention attention);

    Attention findAttentionByIds(Attention attention);

}
